package com.manage.web;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
import org.springframework.context.annotation.ComponentScan;

/** 单数据源配置MapperScan，多数据源就得注释掉，否则就会出现问题
 *  多数据源中在config文件的basePackages里面写
 */
//@MapperScan("com.manage.mapper.*")
@ComponentScan("com.manage.*")
//@SpringBootApplication
@SpringBootApplication(exclude = {
        DataSourceAutoConfiguration.class
})
public class Application {

    public static void main(String[] args) {
        SpringApplication.run(Application.class, args);
    }

}
